<!DOCTYPE html>
<html>
<head>
    <title>售后退款表</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <!-- <div class="grid-btn">
             <#if shiro.hasPermission("service:servicerefunds:save")>
             <a class="btn btn-primary btn-sm" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
             </#if>
             <#if shiro.hasPermission("service:servicerefunds:update")>
             <a class="btn btn-primary btn-sm" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
             </#if>
             <#if shiro.hasPermission("service:servicerefunds:delete")>
             <a class="btn btn-primary btn-sm" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
             </#if>
         </div>-->
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">关联售后id</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srSrId"
                           placeholder="关联售后id"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">退款单状态（1.待审核2.待退款 3.已退款</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srRefundStatus"
                           placeholder="退款单状态（1.待审核2.待退款 3.已退款"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">退款时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srRefundTime"
                           placeholder="退款时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">退款人</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srRefundName"
                           placeholder="退款人"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">退款说明</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srExplain"
                           placeholder="退款说明"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">1原路退回 2 其它</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srRefundPath"
                           placeholder="1原路退回 2 其它"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">退款金额</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srRefundAmount"
                           placeholder="退款金额"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">账户类型 1银行卡 2 支付宝</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srAccountType"
                           placeholder="账户类型 1银行卡 2 支付宝"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">银行卡号</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srBankCode"
                           placeholder="银行卡号"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">持卡人姓名</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srBankCardholder"
                           placeholder="持卡人姓名"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">银行名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srBankName"
                           placeholder="银行名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">开户行</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srBankOpen"
                           placeholder="开户行"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">支付宝账号</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srAlipayCode"
                           placeholder="支付宝账号"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">支付宝姓名</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srAlipayName"
                           placeholder="支付宝姓名"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">伪删除标记（0正常 1删除）</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srDel"
                           placeholder="伪删除标记（0正常 1删除）"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">更新人（员工id）</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srUpdateName"
                           placeholder="更新人（员工id）"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">更新时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srUpdateTime"
                           placeholder="更新时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">创建人（员工id）</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srCreateName"
                           placeholder="创建人（员工id）"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">创建时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="serviceRefunds.srCreateTime"
                           placeholder="创建时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary  btn-sm" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning  btn-sm" @click="reload" value="返回"/>
            </div>
        </form>
    </div>

    <!--确认退款弹窗-->
    <el-dialog title="确认退款" :visible.sync="dialogRefundVisible" width="40%">
        <el-form label-width="100px" size="mini">
            <el-form-item label="售后类型" >
                <span>{{currentData.srTypeText}}</span>
            </el-form-item>
            <el-form-item label="退款路径" >
                <span>{{currentData.srRefundPathText}}</span>
            </el-form-item>
            <el-form-item label="账户类型" >
                <span>{{currentData.srAccountTypeText}}</span>
            </el-form-item>
            <!--银行卡相关信息-->
            <div v-if="currentData.srAccountType==1">
                <el-form-item label="银行卡号:" >
                    <span>{{currentData.srBankCode}}</span>
                </el-form-item>
                <el-form-item label="持卡人姓名:" >
                    <span>{{currentData.srBankCardholder}}</span>
                </el-form-item>
                <el-form-item label="银行名称:" >
                    <span>{{currentData.srBankName}}</span>
                </el-form-item>
                <el-form-item label="开户行:" >
                    <span>{{currentData.srBankOpen}}</span>
                </el-form-item>
            </div>
            <!--支付宝相关信息-->
            <div v-if="currentData.srAccountType==2">
                <el-form-item label="支付宝账号:" >
                    <span>{{currentData.srAlipayCode}}</span>
                </el-form-item>
                <el-form-item label="支付宝姓名:" >
                    <span>{{currentData.srAlipayName}}</span>
                </el-form-item>
            </div>
            <el-form-item label="退款时间:" >
                <el-date-picker   type="date" placeholder="选择日期"></el-date-picker>
            </el-form-item>
            <el-form-item  label="退款说明">
                <el-input type="textarea" :rows="3" placeholder="请输入退款说明"  > </el-input>
            </el-form-item>
        </el-form>
        <div slot="footer" class="dialog-footer">
            <el-button size="small" @click="dialogFormVisible = false">取 消</el-button>
            <el-button size="small" type="primary" @click="dialogFormVisible = false">确 定</el-button>
        </div>
    </el-dialog>
</div>

<script src="${request.contextPath}/statics/js/modules/service/servicerefunds.js?_${.now?long}"></script>
</body>
</html>